package org.gwu.seuss.communication.request;

import java.io.Serializable;
import java.util.List;

import org.gwu.seuss.communication.domain.FileTO;

public class ServerResponse implements Serializable {

	private static final long serialVersionUID = -3125895970071697342L;
	private String message;
	private boolean success;
	private byte[] fileBytes;
	private String filename;
	
	public String getFilename() {
		return filename;
	}

	public void setFilename(String filename) {
		this.filename = filename;
	}

	private List<FileTO> files;

	public ServerResponse() {
		success = false;
		message = "Failed to process request.";
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}

	public boolean isSuccess() {
		return success;
	}

	public void setSuccess(boolean success) {
		this.success = success;
	}

	public byte[] getFileBytes() {
		return fileBytes;
	}

	public void setFileBytes(byte[] fileBytes) {
		this.fileBytes = fileBytes;
	}

	public List<FileTO> getFiles() {
		return files;
	}

	public void setFiles(List<FileTO> files) {
		this.files = files;
	}
}